package com.ruoyi.pos.service.impl;

import com.ruoyi.pos.domain.PosColour;
import com.ruoyi.pos.domain.PosShangpin;
import com.ruoyi.pos.domain.PosShangpinItem;
import com.ruoyi.pos.domain.PosSize;
import com.ruoyi.pos.mapper.PosShangpinMapper;
import com.ruoyi.pos.service.IPosShangpinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PosShangpinServiceImpl implements IPosShangpinService {
    @Autowired
    private PosShangpinMapper posShangpinMapper;

    @Override
    public List<PosShangpin> selectPosShangpinList(PosShangpin posShangpin) {
        return posShangpinMapper.selectPosShangpinList(posShangpin);
    }

    @Override
    public PosShangpin selectPosShangpinById(Integer shangpinId) {
        return posShangpinMapper.selectPosShangpinById(shangpinId);
    }

    @Override
    public List<PosColour> selectPosColourList(Integer shangpinId) {
        return posShangpinMapper.selectPosColourList(shangpinId);
    }

    @Override
    public List<PosSize> selectPosSizeList(PosShangpinItem posShangpinItem) {
        return posShangpinMapper.selectPosSizeList(posShangpinItem);
    }

    @Override
    public PosColour selectPosColourById(Integer id) {
        return posShangpinMapper.selectPosColourById(id);
    }

    @Override
    public PosSize selectPosSizeById(Integer id) {
        return posShangpinMapper.selectPosSizeById(id);
    }

    @Override
    public List<PosShangpinItem> selectPosShangpinItemList(PosShangpinItem posShangpinItem) {
        return posShangpinMapper.selectPosShangpinItemList(posShangpinItem);
    }

    @Override
    public int updatePosShangpinItem(PosShangpinItem posShangpinItem) {
        return posShangpinMapper.updatePosShangpinItem(posShangpinItem);
    }

}
